package com.bskj.common.enums;

public enum ShopCouponValidTypeEnum {
	coupon_crtain(1,"领取后一定时间内有效"),coupon_fixed(2,"领取后当天固定时间内有效");
	
	private int key;
	private String value;
	
	
	private ShopCouponValidTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public static ShopCouponValidTypeEnum get(int key) {
		for(ShopCouponValidTypeEnum shopCouponValidTypeEnum : ShopCouponValidTypeEnum.values()) {
			if(shopCouponValidTypeEnum.getKey() == key) {
				return shopCouponValidTypeEnum;
			}
		}
		return null;
	}
	
}
